﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
    
    <Style TargetType="Button" x:Key="AddButton">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="Button"> 
                    <Border Name="Border" Width="{TemplateBinding Width}" Height="{TemplateBinding Height}" BorderBrush="{DynamicResource Light1}"
                            BorderThickness="1" CornerRadius="2" Background="Transparent">
                        <StackPanel Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Center">
                            <TextBlock Name="TextBlock" Text="LÄGG TILL" Foreground="{DynamicResource Light2}" FontSize="13" FontFamily="Tahoma" />
                        </StackPanel>
                    </Border>
                    <ControlTemplate.Triggers>
                        <MultiTrigger>
                            <MultiTrigger.Conditions>
                                <Condition Property="IsMouseOver" Value="True" />
                                <Condition Property="IsEnabled" Value="True" />
                            </MultiTrigger.Conditions>
                            <MultiTrigger.Setters>
                                <Setter TargetName="Border" Property="BorderBrush" Value="White" />
                                <Setter TargetName="Border" Property="Background" Value="{DynamicResource BookColor2}" />
                                <Setter TargetName="TextBlock" Property="Foreground" Value="White" />
                            </MultiTrigger.Setters>
                        </MultiTrigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    
    <Style TargetType="Button" x:Key="SearchButton">
        <Setter Property="TextElement.Foreground" Value="{DynamicResource Dark2}" />
        <Setter Property="TextElement.FontSize" Value="14" />
        <Setter Property="TextElement.FontFamily" Value="/Fonts/OpenSans-Regular.ttf#Open Sans" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="Button">
                    <Border Name="PART_BORDER"
                            Width="{TemplateBinding Width}" Height="{TemplateBinding Height}" BorderBrush="{DynamicResource BG1}"
                            BorderThickness="1" CornerRadius="2" Background="Transparent" >
                        <ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center" />
                    </Border>
                    <ControlTemplate.Triggers>
                        <MultiTrigger>
                            <MultiTrigger.Conditions>
                                <Condition Property="IsMouseOver" Value="True" />
                                <Condition Property="IsEnabled" Value="True" />
                            </MultiTrigger.Conditions>
                            <MultiTrigger.Setters>
                                <Setter TargetName="PART_BORDER" Property="BorderBrush" Value="{DynamicResource BG1}" />
                                <Setter TargetName="PART_BORDER" Property="Background" Value="{DynamicResource Light1}" />
                                <Setter Property="TextElement.Foreground" Value="Black" />
                            </MultiTrigger.Setters>
                        </MultiTrigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    
    
    <Style TargetType="Button" x:Key="{x:Type Button}">
        <Setter Property="TextElement.Foreground" Value="White" /> 
        <Setter Property="TextElement.FontSize" Value="13" />
        <Setter Property="TextElement.FontFamily" Value="Tahoma" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="Button">
                    <Border Name="Border" Width="{TemplateBinding Width}" Height="{TemplateBinding Height}" BorderBrush="{DynamicResource Light1}"
                            BorderThickness="1" CornerRadius="2" Background="Transparent">
                        <StackPanel Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Center">
                            <ContentPresenter />
                        </StackPanel>
                    </Border>
                    <ControlTemplate.Triggers>
                        <MultiTrigger>
                            <MultiTrigger.Conditions>
                                <Condition Property="IsMouseOver" Value="True" />
                                <Condition Property="IsEnabled" Value="True" />
                            </MultiTrigger.Conditions>
                            <MultiTrigger.Setters>
                                <Setter TargetName="Border" Property="BorderBrush" Value="White" />
                                <Setter TargetName="Border" Property="Background" Value="{DynamicResource Light1}" />
                                <Setter Property="TextElement.Foreground" Value="Black" />
                            </MultiTrigger.Setters>
                        </MultiTrigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>


</ResourceDictionary>